]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-bin: Don't allocate a hidden actor
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 1 Sep 2012 19:45:44 +0000 (16:45 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 3 Sep 2012 05:51:22 +0000 (02:51 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=683156

src/st/st-bin.c

index 71c7c3a5cf844eda127eac3979b200b3f05c3838..b083346391b88caec4d4b2ce5ed132ef5cfe1796 100644 (file)
@@ -128,7 +128,7 @@ st_bin_get_preferred_width (ClutterActor *self,
 
   st_theme_node_adjust_for_height (theme_node, &for_height);
 
-  if (priv->child == NULL)
+  if (priv->child == NULL || !CLUTTER_ACTOR_IS_VISIBLE (priv->child))
     {
       if (min_width_p)
         *min_width_p = 0;
@@ -157,7 +157,7 @@ st_bin_get_preferred_height (ClutterActor *self,
 
   st_theme_node_adjust_for_width (theme_node, &for_width);
 
-  if (priv->child == NULL)
+  if (priv->child == NULL || !CLUTTER_ACTOR_IS_VISIBLE (priv->child))
     {
       if (min_height_p)
         *min_height_p = 0;